package com.yf1706.bean;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;
import java.util.List;


/**
 * The persistent class for the check_affari_category database table.
 * 
 */
@Entity
@Table(name="check_affari_category")
@NamedQuery(name="CheckAffariCategory.findAll", query="SELECT c FROM CheckAffariCategory c")
public class CheckAffariCategory implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="affair_id")
	private int affairId;

	@Column(name="affair_name")
	private String affairName;

	@Column(name="application_type")
	private String applicationType;

	@Temporal(TemporalType.DATE)
	@Column(name="make_time")
	private Date makeTime;

	private String maker;

	private String overtime;

	private String remark;

	private String state;

	@Column(name="update_emp")
	private String updateEmp;

	@Column(name="update_time")
	private Date updateTime;
	
	@OneToMany(mappedBy="checkAffariCategory")
	@JSONField(serialize = false)
	private List<CheckCalendarAffair> checkCalendarAffairs;
	
	public List<CheckCalendarAffair> getCheckCalendarAffairs() {
		return checkCalendarAffairs;
	}

	public void setCheckCalendarAffairs(List<CheckCalendarAffair> checkCalendarAffairs) {
		this.checkCalendarAffairs = checkCalendarAffairs;
	}

	public CheckAffariCategory() {
	}

	public int getAffairId() {
		return affairId;
	}

	public void setAffairId(int affairId) {
		this.affairId = affairId;
	}

	public String getAffairName() {
		return this.affairName;
	}

	public void setAffairName(String affairName) {
		this.affairName = affairName;
	}

	public String getApplicationType() {
		return this.applicationType;
	}

	public void setApplicationType(String applicationType) {
		this.applicationType = applicationType;
	}

	public Date getMakeTime() {
		return this.makeTime;
	}

	public void setMakeTime(Date makeTime) {
		this.makeTime = makeTime;
	}

	public String getMaker() {
		return this.maker;
	}

	public void setMaker(String maker) {
		this.maker = maker;
	}

	public String getOvertime() {
		return this.overtime;
	}

	public void setOvertime(String overtime) {
		this.overtime = overtime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getUpdateEmp() {
		return this.updateEmp;
	}

	public void setUpdateEmp(String updateEmp) {
		this.updateEmp = updateEmp;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date date) {
		this.updateTime = date;
	}

}